package me.zhengjie.minbearwcs.dao.outbound.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.minbearwcs.dao.outbound.inf.OutboundTaskRecordHistoryDao;
import me.zhengjie.minbearwcs.entity.Mapper.outbound.OutboundTaskRecordHistoryMapper;
import me.zhengjie.minbearwcs.entity.PO.wcs.outbound.history.OutboundTaskRecordHistory;
import org.springframework.stereotype.Repository;

@Repository
@RequiredArgsConstructor
public class OutboundTaskRecordHistoryDaoImpl implements OutboundTaskRecordHistoryDao {

    private final OutboundTaskRecordHistoryMapper mapper;

    @Override
    public boolean insert(OutboundTaskRecordHistory outboundTaskRecordHistory) {
        return mapper.insert(outboundTaskRecordHistory) == 1;
    }
}
